package com.ruoyi.zsyh.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 二维码记录对象 zsyh_parts_qrcode
 * 
 * @author yuexl
 * @date 2022-01-09
 */
public class ZsyhPartsQrcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 二维码编码 */
    private String qrcodeId;

    /** 配件id */
    @Excel(name = "配件id")
    private String partsId;

    /** 产品属性id */
    @Excel(name = "产品属性id")
    private String attributeId;

    /** 出厂日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadlineDate;

    /** 质保金金额 */
    @Excel(name = "质保金金额")
    private BigDecimal payPrice;

    /** 二维码序号 */
    @Excel(name = "二维码序号")
    private Long qrcodeSort;

    private String attributeFreeWarranty;

    private String attributeWarranty;

    private String factoryId;

    public void setQrcodeId(String qrcodeId) 
    {
        this.qrcodeId = qrcodeId;
    }

    public String getQrcodeId() 
    {
        return qrcodeId;
    }
    public void setPartsId(String partsId) 
    {
        this.partsId = partsId;
    }

    public String getPartsId() 
    {
        return partsId;
    }
    public void setAttributeId(String attributeId) 
    {
        this.attributeId = attributeId;
    }

    public String getAttributeId() 
    {
        return attributeId;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setDeadlineDate(Date deadlineDate) 
    {
        this.deadlineDate = deadlineDate;
    }

    public Date getDeadlineDate() 
    {
        return deadlineDate;
    }
    public void setPayPrice(BigDecimal payPrice) 
    {
        this.payPrice = payPrice;
    }

    public BigDecimal getPayPrice() 
    {
        return payPrice;
    }
    public void setQrcodeSort(Long qrcodeSort) 
    {
        this.qrcodeSort = qrcodeSort;
    }

    public Long getQrcodeSort() 
    {
        return qrcodeSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("qrcodeId", getQrcodeId())
            .append("partsId", getPartsId())
            .append("attributeId", getAttributeId())
            .append("productionDate", getProductionDate())
            .append("deadlineDate", getDeadlineDate())
            .append("payPrice", getPayPrice())
            .append("qrcodeSort", getQrcodeSort())
            .append("createTime", getCreateTime())
            .toString();
    }

    public String getAttributeFreeWarranty() {
        return attributeFreeWarranty;
    }

    public void setAttributeFreeWarranty(String attributeFreeWarranty) {
        this.attributeFreeWarranty = attributeFreeWarranty;
    }

    public String getAttributeWarranty() {
        return attributeWarranty;
    }

    public void setAttributeWarranty(String attributeWarranty) {
        this.attributeWarranty = attributeWarranty;
    }

    public String getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId;
    }
}
